initialize garmin_fs class member.
catch gui up with Qt 5.15 floor.
rename tidy build directory.
QString fax_nr; /* fax number */
QString postal_code; /* postal code */
QString email; /* email address */
- unsigned int duration; /* expected travel time to next route point, in seconds, only when auto-routed */
+ unsigned int duration{0}; /* expected travel time to next route point, in seconds, only when auto-routed */
QList<garmin_ilink_t> ilinks;
#ifdef GMSD_EXPERIMENTAL
#include <QVariant> // for QVariant
#include <QApplication> // for QApplication
#include <QMessageBox> // for QMessageBox
-#ifdef GENERATE_CORE_STRINGS
-#include <QtGlobal> // for QT_VERSION, QT_VERSION_CHECK
-#endif
#include "appname.h" // for appName
static QString xlt(const QString& f)
{
#ifdef GENERATE_CORE_STRINGS
-#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
- *generate_output_stream << "QT_TRANSLATE_NOOP(\"core\",\"" << f << "\")" << endl;
-#else
*generate_output_stream << "QT_TRANSLATE_NOOP(\"core\",\"" << f << "\")" << Qt::endl;
-#endif
#endif
return QCoreApplication::translate("core", f.toUtf8().constData());
}
// MIN_QT_VERSION in GPSBabel.pro should correspond to the QT_VERSION_CHECK
// arguments in main.cc and gui/main.cc and the version check in
// CMakeLists.txt, gui/CMakeLists.txt.
-#if (QT_VERSION < QT_VERSION_CHECK(5, 12, 0))
+#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
#error this version of Qt is not supported.
#endif
CHECKS="clang-diagnostic-*,clang-analyzer-*,cppcoreguidelines-*,modernize-*,bugprone-*,google-*,misc-*,performance-*,readability-*,-cppcoreguidelines-pro-type-vararg,-modernize-use-trailing-return-type,-readability-identifier-length"
HEADERFILTER=".*"
-mkdir bld
-cd bld
+mkdir bld-tidy
+cd bld-tidy
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DGPSBABEL_ENABLE_PCH=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
# generate included ui files
cmake --build .
cd ..
# exclude third party library source
-jq '[.[]|select(.file|contains("zlib")|not)] | [.[]|select(.file|contains("shapelib")|not)] | [.[]|select(.file|contains("bld")|not)]' \
-bld/compile_commands.json \
+jq '[.[]|select(.file|contains("zlib")|not)] | [.[]|select(.file|contains("shapelib")|not)] | [.[]|select(.file|contains("bld-tidy")|not)]' \
+bld-tidy/compile_commands.json \
> compile_commands.json
# run-clang-tidy may still be forcing injection of escape sequences for colors.